package priv.lirenhe.exam.B;

import java.io.IOException;
import java.net.InetAddress;

public class Example10{
    public static void main(String[] args) throws IOException {
    	InetAddress ia = InetAddress.getLocalHost();
    	System.out.println(ia.getHostAddress());
    	System.out.println(ia.getHostName());
    	System.out.println(ia.isReachable(3000));
    }
}